package com.sumainfor.pc.market.controller;

import com.netflix.discovery.converters.Auto;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.FacilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**设备
 * @Auther: zhlu
 * @Date: 2018/11/8 19:39
 * @Description:
 */
@RestController
@RequestMapping("/fac")
public class FacilityController {

    @Autowired
    FacilityService facilityService;

    /**
     * 功能描述:
     * 所有设备
     * @Author zhlu
     * @Description //TODO
     * @Date 2018/11/8 19:42
     */
    @ResponseBody
    @GetMapping("/getFacilityList")
    public JsonResult getFacilityList(){
        JsonResult result=new JsonResult();
        return result.put(facilityService.getFacilityList());
    }


}
